<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open($this->_module_name.'artist/dels', $attributes);
?>
<table class="admindata">
    <thead>
        <tr>
            <th colspan="8"> <input type="submit" onClick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
                <?=lang('total');?><?=$num?><?=lang('record');?>
                <span class="pages"><?=$pagination?></span> 
                </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onClick="check_chose('sa', 'ar_id[]', 'checknew');" /></th>
            <th width="22px">Order</th>
            <th>Type</th>
            <th width="212px"><?=lang('name');?></th>
            <th>Thumb<br>(270x180)</th>
            <th>Chuyên mục</th>
            <th>Link</th>
            <th width='120'><?=lang('functions');?></th>
        </tr>
    </thead>
    <?
	$k=1;
	//$position = $this->config->item('pos_banner') ;
	foreach($list as $rs):
		$filename = ($rs->lb_image) ? base_url_site().'uploads/banner/artist/'.$rs->lb_image : '' ;
		$images = fn_show_banner($filename, $rs->lb_url, '', 100) ;
?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->banner_id?>"></td>
         <td><?=$rs->nb_order?></td>
         <td><?=($rs->banner_type=="ARTIST")?'Artist':'MC';?></td>
        <td><a href="<?=$rs->lb_url?>"><?=$rs->lb_title?></a></td>
        <td><a href="<?=$rs->lb_url?>"><?=$images?></a></td>
        <td><?=$rs->lb_sumary?></td>
        <td><?=$rs->lb_url?></td>
        <td align="center"><?=icon_edit($this->_module_name.'artist/edit/'.$rs->banner_id)?>
            <span id="publish<?=$rs->banner_id?>"><?=icon_active("'fm_banner'","'banner_id'",$rs->banner_id,$rs->bl_active)?></span>
            <?=icon_del($this->_module_name.'artist/del/'.$rs->banner_id.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
	$k=1-$k;
	endforeach;
?>
    <tfoot>
    <td colspan="8"><input type="submit" class="submit" onClick="return verify_del();" name="btn_submit" value="<?=lang('delete');?>">
            <?=lang('total');?>
            <?=$num?>
            <?=lang('record');?>
            <span class="pages">
            <?=$pagination?>
            </span></td>
            </tfoot>
</table>
<?=form_close()?>
